<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<html>
<head>
<jsp:useBean id="MESSAGE" class="java.lang.String" scope="request"/>
<title>Bookstore</title>
<script>


	function Search(){
	document.frm.action="/bookstore/itemsearch.do";
	document.frm.submit();
	}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="/bookstore/default.css" />
</head>
<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (all.psd) -->
<table id="Table_01" width="718"  border="0" cellpadding="0" cellspacing="0" align=center>
	<tr>
		<td colspan="3">
		<img src="/bookstore/images/all_01.jpg" width="718" height="167" alt="">	
		</td>
	</tr>
	<tr>
		<td colspan="3">
			<div id="menu" align=center>	
					 
<jsp:include page="adminmenu.jsp"/>
		  </div>	
		</td>
	</tr>
	<tr>
		<td colspan="3">
		<div id="content">	
	<form method="post" name=frm action="/bookstore/booksearch.do">


 <input type="hidden" id="imageId"  name="imageId" value="" />
 
 <input type="hidden" name="call" value="upload" />


<p class="pheading1">Search Book</p>
<bean:write name='MESSAGE'/> 
<table cellpadding="0" cellspacing="5" class=contentable>



<tr>
       <td>Category</td>
       <td><select name="categoryid">
	  
<logic:iterate id="categ" name="categorylist">
<option value="<bean:write name="categ" property="categoryid"/>">
<bean:write name="categ" property="categoryname"/>
</option>
</logic:iterate>


	   </select></td>
</tr>

<tr>
       <td>Name</td>
       <td><input size="20" type="text" name="name"></td>
</tr>
<tr>
       <td>ISBN</td>
       <td><input size="20" type="text" name="isbn"></td>
</tr>
<tr>
       <td>Publisher</td>
       <td><input size="20" type="text" name="publisher"></td>
</tr>
<tr>
       <td>Author</td>
       <td><input size="20" type="text" name="author"></td>
</tr>
<tr>
       <td>Year of Publishing</td>
       <td><input size="20" type="text" name="year"></td>
</tr>



<tr>
       <td>&nbsp;</td>
       <td><input type="button" class=btn onClick="Search()" value="Search" /></td>
</tr>

</table>


</form>
		</div>
		</td>
	</tr>
	<tr><td colspan="3"><div id=footer><img src="/bookstore/images/all_06.jpg" width="718" height="17" alt="">
			</div></td></tr>
	
	
</table>
<!-- End ImageReady Slices -->

</body>
</html>